<?php
	if ( ! defined('BASEPATH')) exit('No direct script access allowed');
	class Msite extends CI_Model
	{
		function __construct()
		{
			//parent::CI_Model();	
		}
		function edit_site()
		{		
			$this->load->helper('file');
			$data ="<?php \n
					if ( ! defined('BASEPATH')) exit('No direct script access allowed'); \r	
					\$config['sitename'] ='".$this->input->post('sitename')."';\r
                    \$config['chkheard'] =".$this->input->post('chkheard').";\r
                     \$config['yaolimit'] =".$this->input->post('yaolimit').";\r
                     \$config['yaojifen'] =".$this->input->post('yaojifen').";\r
                     \$config['chktime'] =".$this->input->post('chktime').";\r
                     \$config['jyilimit'] =".$this->input->post('jyilimit').";\r
                     \$config['description'] ='".$this->input->post('description')."';\r
                     ";
				write_file('./ads_application/config/siteset.php', $data);
				return true;	
			}
		
		
		
	}